package com.ishansong.ticket.service;

import com.ishansong.ticket.exception.ServiceDaoException;
import com.ishansong.ticket.exception.ServiceException;
import com.ishansong.ticket.model.TicketQaGroup;

import java.util.List;
import java.util.Map;

public interface TicketQaGroupService {



	/**
	 * 
	 * @param id
	 * @return
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	TicketQaGroup getTicketQaGroup(Long id) throws ServiceDaoException, ServiceException;

	/**
	 *
	 * @param ticketQaGroup
	 * @return
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	Long saveTicketQaGroup(TicketQaGroup ticketQaGroup) throws ServiceDaoException, ServiceException;

	/**
	 *
	 * @param ticketQaGroup
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	void updateTicketQaGroup(TicketQaGroup ticketQaGroup) throws ServiceDaoException, ServiceException;

    /**
     *
     * @param id
     * @return
     * @throws ServiceDaoException
     * @throws ServiceException
     */
	Boolean deleteTicketQaGroup(Long id) throws ServiceDaoException, ServiceException;

	/**
	 * 获取问题列表
	 * @param pid 父id
	 * @param qaType 0闪送 1客户
	 * @return List<TicketQaGroup>
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
    List<TicketQaGroup> queryTicketQaGroupsByPid(Integer pid,Integer qaType) throws ServiceDaoException, ServiceException;

	/**
	 * 获取所有问题
	 * @return
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	Map<Integer,String> queryTicketQaGroups() throws ServiceDaoException, ServiceException;
}
